home *** CD-ROM | disk | FTP | other *** search
- /* hAWK_recurse.h : when AWKmain() is called via the hAWK()
- function, globals are temporarily saved, and restored after
- the call, using a linked list of HAWKstate structs. */
-
- extern short hAWKstackDepth;
-
- typedef struct HAWKstate
- {
- jmp_buf envBuf;
- short exiting;
- short exit_val;
- short tempsource;
- char **sourcefile;
- short numfiles;
- short output_is_tty;
- NODE *FS_node, *NF_node, *RS_node, *NR_node;
- NODE *FILENAME_node, *OFS_node, *ORS_node, *OFMT_node;
- NODE *FNR_node, *RLENGTH_node, *RSTART_node, *SUBSEP_node;
- NODE *IGNORECASE_node;
- NODE *ARGC_node, *ARGV_node;
- NODE *RUNERR_node;
- NODE *STDPATH_node;
- NODE *TIME_node;
- NODE **stack_ptr;
- NODE *deref;
- NODE **fields_arr;
- short sourceline;
- char *source;
- NODE *expression_value;
- NODE *_t;
- char *myname;
- short node0_valid;
- NODE *variables[HASHSIZE];
- NODE *begin_block, *end_block;
- jmp_buf loop_tag;
- short loop_tag_valid;
- short func_tag_valid;
- jmp_buf func_tag;
- jmp_buf rule_tag;
- char *line_buf;
- char *parse_extent;
- short parse_high_water;
- char *save_fs;
- NODE node0;
- short nf_high_water;
- struct re_pattern_buffer *rp;
- char *last_fs;
- char buf[10];
- struct redirect *red_head;
- short getline_redirect;
- short field_num;
- short si;
- short files;
- IOBUF *curfile;
- NODE *nextfree;
- short obscure_syntax;
- struct HAWKstate *onebefore;
- } HAWKstate, *HAWKstatePtr;
-
- extern HAWKstatePtr hs;